package com.citycloud.ccuap.tc.admin.role;

import java.util.List;
import java.util.Map;

import com.citycloud.ccuap.commons.sys.entity.SysRole;
import com.citycloud.ccuap.framework.mybatis.pagination.PageQuery;
import com.citycloud.ccuap.framework.service.mybatis.IMybatisService;

/**
 * @author liujw
 * @create 2019-06-28 11:32
 * Description:
 */
public interface RoleApiService extends IMybatisService<SysRole, Long> {


    PageQuery<Map<String, Object>> findByNameAndProId(PageQuery<Map<String, Object>> pageQuery, String roleName,
                                                      Long roleId, Long projectId, boolean b);

    PageQuery<Map<String, Object>> findByNameAndProId(PageQuery<Map<String, Object>> pageQuery, String roleName,
                                                      Long roleId, Long projectId,
                                                      String orderField, String orderType, boolean b);

    List<SysRole> findByRoleCode(String roleCode);


    void updateRole(SysRole paramSysRole);
}
